package com.nhtrinh.game;

import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.widget.TextView;

import com.nhtrinh.lib.CustomFont;

public class ScoreActivity extends Activity {

	TextView row1_tv1;
	TextView row1_tv2;
	
	TextView row2_tv1;
	TextView row2_tv2;
	
	TextView row3_tv1;
	TextView row3_tv2;
	
	TextView row4_tv1;
	TextView row4_tv2;
	
	TextView row5_tv1;
	TextView row5_tv2;
	
	TextView tvTitle;
	
	Context mContext;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_score);
		
		mContext = ScoreActivity.this;
		
		CustomFont mCustomFont = new CustomFont(mContext);
		Typeface tf = mCustomFont.loadCustomFont();
		
		row1_tv1 = (TextView)findViewById(R.id.activity_score_table_row1_tv1);
		row1_tv2 = (TextView)findViewById(R.id.activity_score_table_row1_tv2);
		
		row2_tv1 = (TextView)findViewById(R.id.activity_score_table_row2_tv1);
		row2_tv2 = (TextView)findViewById(R.id.activity_score_table_row2_tv2);
		
		row3_tv1 = (TextView)findViewById(R.id.activity_score_table_row3_tv1);
		row3_tv2 = (TextView)findViewById(R.id.activity_score_table_row3_tv2);
		
		row4_tv1 = (TextView)findViewById(R.id.activity_score_table_row4_tv1);
		row4_tv2 = (TextView)findViewById(R.id.activity_score_table_row4_tv2);
		
		row5_tv1 = (TextView)findViewById(R.id.activity_score_table_row5_tv1);
		row5_tv2 = (TextView)findViewById(R.id.activity_score_table_row5_tv2);
		
		tvTitle  = (TextView)findViewById(R.id.activity_score_tv_title);
		
		row1_tv1.setTypeface(tf);
		row1_tv2.setTypeface(tf);
		
		row2_tv1.setTypeface(tf);
		row2_tv2.setTypeface(tf);
		
		row3_tv1.setTypeface(tf);
		row3_tv2.setTypeface(tf);
		
		row4_tv1.setTypeface(tf);
		row4_tv2.setTypeface(tf);
		
		row5_tv1.setTypeface(tf);
		row5_tv2.setTypeface(tf);
		
		tvTitle.setTypeface(tf);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {

		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.score, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}

	

}
